package com.examplemartin.jpademo.pojo.po.purchase;

import com.examplemartin.jpademo.pojo.admin.BaseEntity;
import com.examplemartin.jpademo.pojo.po.good.GoodPO;

import javax.persistence.Column;
import javax.persistence.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 采购订单明细实体
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "t_purdetail")
public class PurDetailPO extends BaseEntity implements Serializable {

    // 对应采购订单 one
  @ManyToOne
  private PurPO purPO;


    // 商品 one
  @ManyToOne
  private GoodPO goodPO;

  // 数量
  private Integer goodcount;

  // 单价
  @Column(precision = 2)
  private Float price;


}
